package InheritanceDemo3;

public class Admin extends Person {
    private String department;

    public Admin(String address, String department) {
        super();
        super.address = address;
        this.department = department;
    }

    public void work() {
        super.work();
        System.out.println("在" + department + "部门处理行政事物");
    }
}
